package top.jojoace.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author a1615
 */
@SpringBootApplication
/**
 * <h2> @ComponentScan</h2>
 * <p>默认扫描同级以及子级文件夹中的注解</p>
 * <p>会覆盖@SpringBootApplication中原来的@ComponentScan的路径</p>
 */
@ComponentScan({"top.jojoace.demo2","top.jojoace.demo"})//扫描top.jojoace.demo2包
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}